//
//  OSBottomAlertView.m
//  VideoScreenApp
//
//  Created by 凯朱 on 2022/6/6.
//

#import "OSBottomAlertView.h"

@implementation OSBottomAlertView
-(void)awakeFromNib{
    [super awakeFromNib];
    self.backgroundColor = [OSColor_1 colorWithAlphaComponent:0.5];
    
    self.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeAction)];
    [self addGestureRecognizer:tap];
}

-(void)closeAction{
    [self removeFromSuperview];
}

+(void)showBottomAlertView{
    OSBottomAlertView *alert = [OSBottomAlertView viewFromXIB];
    alert.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
    [kAppWindow addSubview:alert];
}

@end
